package com.greendragon.persistence.dao; 

import java.util.List;

import com.greendragon.persistence.enmu.FetchOrderType;
import com.greendragon.persistence.enmu.LockType;
import com.greendragon.persistence.enmu.VerifyType;

/** 
 * @author wulibin, exceptsky@gmail.com, 2011-9-26 上午10:33:22
 * 
 */
public interface ICommentDao<T>  extends IBaseDao<T>{
	/*
	 * 获取指定对象的评论
	 * @param id			实体ID
	 * @param offset  		设置开始位置
	 * @param length  		设置读取数据的记录条数
	 * */
	public List<T> getOfObj(long id, int offset, int length, LockType lockType, VerifyType verifyType, FetchOrderType orderType);
	
	/*
	 * 获取指定对象评论的总数
	 * @param id			实体ID
	 * */
	public long getCountOfObj(long id, LockType lockType, VerifyType verifyType);
	
	/*
	 * 获取指定用户的评论的总数
	 * @param uid			用户ID
	 * */
	public long getCountOfUser(long uid, LockType lockType, VerifyType verifyType);
}
 